package com.education.platform.api.service.impl;

import com.education.platform.dao.entity.ArticleDO;
import com.education.platform.dao.model.ArticleModel;
import org.springframework.beans.factory.annotation.Autowired;
import com.education.platform.common.service.impl.BaseServiceImpl;
import com.education.platform.dao.ArticleDao;
import org.springframework.stereotype.Service;
import com.education.platform.api.service.ArticleService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.List;

/**
* describe: 文章
* @author : 
* @date: 2020-07-06 09:23:16.228
**/
@Service
public class ArticleServiceImpl extends BaseServiceImpl<ArticleDao,ArticleDO> implements ArticleService {

	private static final Logger LOGGER = LoggerFactory.getLogger(ArticleServiceImpl.class);

    @Autowired
	private ArticleDao articleDao;

    /**
     * 文章列表
     * @param query
     * @return
     */
    @Override
    public List<ArticleModel> getArticleList(ArticleModel query) {
        return articleDao.getArticleListApp(query);
    }
}
